import 'package:xin_nuo_pda/bean/request_bean_entity.dart';

requestBeanEntityFromJson(RequestBeanEntity data, Map<String, dynamic> json) {
	if (json['Request'] != null) {
		data.request = RequestBeanRequest().fromJson(json['Request']);
	}
	return data;
}

Map<String, dynamic> requestBeanEntityToJson(RequestBeanEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Request'] = entity.request.toJson();
	return data;
}

requestBeanRequestFromJson(RequestBeanRequest data, Map<String, dynamic> json) {
	if (json['Header'] != null) {
		data.header = RequestBeanRequestHeader().fromJson(json['Header']);
	}
	if (json['Body'] != null) {
		data.body = json['Body'];
	}
	return data;
}

Map<String, dynamic> requestBeanRequestToJson(RequestBeanRequest entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Header'] = entity.header.toJson();
	data['Body'] = entity.body;
	return data;
}

requestBeanRequestHeaderFromJson(RequestBeanRequestHeader data, Map<String, dynamic> json) {
	if (json['LANGUAGE'] != null) {
		data.lANGUAGE = json['LANGUAGE'].toString();
	}
	if (json['MESSAGENAME'] != null) {
		data.mESSAGENAME = json['MESSAGENAME'].toString();
	}
	if (json['TRANSACTIONID'] != null) {
		data.tRANSACTIONID = json['TRANSACTIONID'].toString();
	}
	if (json['ORGRRN'] != null) {
		data.oRGRRN = json['ORGRRN'].toString();
	}
	if (json['ORGNAME'] != null) {
		data.oRGNAME = json['ORGNAME'].toString();
	}
	if (json['USERNAME'] != null) {
		data.uSERNAME = json['USERNAME'].toString();
	}
	return data;
}

Map<String, dynamic> requestBeanRequestHeaderToJson(RequestBeanRequestHeader entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['LANGUAGE'] = entity.lANGUAGE;
	data['MESSAGENAME'] = entity.mESSAGENAME;
	data['TRANSACTIONID'] = entity.tRANSACTIONID;
	data['ORGRRN'] = entity.oRGRRN;
	data['ORGNAME'] = entity.oRGNAME;
	data['USERNAME'] = entity.uSERNAME;
	return data;
}